package com.pan.enumn;

import java.util.function.BiFunction;
import java.util.function.Function;

public enum MessageEnum {

    SUCCESS(114,"成功"),
    FAIL(514,"失败"),
    CONNECT(145,"连接"),

    CHAT(191,"对话"),

    FILE(810,"文件"),

    CLOSE(999,"关闭");

    int code;
    String msg;

    private MessageEnum(int code,String msg){
        this.code = code;
        this.msg = msg;

    }


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
